package pp.gateway.application.user.login.param;

import lombok.Data;
import pp.infrastructure.mysql.mapper.user.UserDO;

import java.io.Serializable;

@Data
public class UserRegisterParam implements Serializable {
    private String name;     // 用户名
    private String account;  // 账号
    private String pwd;      // 密码
    private String telephone;// 电话号码
    public UserDO toDo() {
        UserDO userDO = new UserDO();
        userDO.setAccount(this.account);
        userDO.setName(this.name);
        userDO.setPwd(this.pwd);
        userDO.setTelephone(this.telephone);
        return userDO;
    }
}
